﻿@{
    ViewBag.Title = "小博客Bug反馈";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model PagedList<BugModel>
@using MyBlog
<link href="~/Content/Blog/sysmsg.css" rel="stylesheet" />
<div id="dvbugheader" class="sys-bug-header">
    <div class="sys-bug-header-left">
        Bug反馈(<span id="spcount">@ViewBag.total</span>)
    </div>
    <div class="sys-bug-header-mid">
        <img src="~/Content/Images/xiaolaba.gif" />大家有发现什么Bug的在这里提交一下啦！
    </div>
    <div class="sys-msg-header-right"><span onclick="goSend()">我要提Bug <i class="icon-edit"></i> </span></div>
</div>
<div id="dvsendbugmain" class="sys-bug-send-main">
    <div class="sys-bug-send-main-body" id="dvsendbug">
        @if (UserSession.LoginUserInfo == null)
        {
            if (WebCache.AllowAnonymous)
            {
                <div class="sys-msg-login">
                    系统提示：管理员已开启游客发言权限，若要使用评论回复等更多功能请先
                    <a href="@Url.Content("~/account/login?ReturnUrl="+Request.Url)">
                        [登录]
                    </a>或前往<a href="@Url.Content("~/account/register")">[注册]</a>
                </div>
                <div class="sys-msg-visitor">
                    <span>您的姓名：</span>
                    <input maxlength="20" class="inputbox inputFilter" type="text" id="txtvistor" /><label class="red">*</label>
                </div>
                <div class="sys-msg-visitor">
                    <span>您的Email：</span>
                    <input title="有回复我们将第一时间通过邮件通知您" maxlength="50" class="inputbox inputFilter" type="text" id="txtvistorEmail" /><label class="red">*</label>
                </div>
            }
            else
            {
                Html.RenderAction("_LoginTip", "system");
                <input type="hidden" id="hCheck" value="1" />
            }
        }
        else
        {
            @:当前用户：<span>@UserSession.LoginUserInfo.NickName</span>
            <div style="margin-top:10px; border-bottom:1px solid #174105;margin-bottom:10px;">
                <input type="hidden" name="uid" id="txtuid" value="@UserSession.LoginUserInfo.Account" />
            </div>
        }
        <div class="sys-msg-visitor">
            <span>bug类型：</span>
            <select id="bugType" style="width:216px">
                <option value="">请选择</option>
                <option value="1">404，找不到页面</option>
                <option value="2">Js报错</option>
                <option value="3">样式错乱</option>
                <option value="4">抛出异常</option>
                <option value="5">其他错误</option>
            </select>
        </div>
            <script id="content" name="content" style="height:150px; margin-top:10px; width:99%; margin-bottom:5px;" type="text/plain">
            </script>
            <div class="sys-bug-btn">
                <input type="button" id="btnok" value="提交" class="btnsubmit" />
                <input type="button" id="btncancel" value="关闭" class="btnsubmit" />
                <input type="hidden" id="hID" value="0" />
                <input type="hidden" id="hPID" value="0" />
            </div>
        </div>
</div>
<div id="dvbuglist">
    @{Html.RenderAction("_SysBugManager");}
</div>
<script src="~/Scripts/Blog/sysbug.js"></script>
<script src="~/Scripts/mailAutoComplete.js"></script>